import {GlowFilter, OutlineFilter} from "pixi-filters";

export function outlineFilter(options){
        let {width=2, color=0x99ff99} = options
        //创建轮廓滤镜
        let outlineFilter = new OutlineFilter(width, color)
        return outlineFilter
    }

export function glowFilter(options){
    let {distance=50,outerStrength=1,innerStrength=0,color=0xff0000,quality=0.5} = options
    // 创建发光滤镜
    const glowFilter = new GlowFilter({
        distance,
        outerStrength,
        innerStrength,
        color,
        quality,
    });
    return glowFilter
}


